<?php
require_once('Autoload.php');
$sphinx = \small\model\db\SphinxMysql::init();
$search = array();

$serachKey = '';

if (isset($_POST['search']) && $_POST['search'])  
{
	$serachKey = &$_POST['search'];
	$iSql = "select * from demo where match('" . $_POST['search'] ."')";
	$search = $sphinx->findAll($iSql);
}

require_once('view/index.php');
?>
